//
//  HSYBaseVideoPlayerController.h
//  高仿暴走斗图
//
//  Created by key on 16/6/20.
//  Copyright © 2016年 huangsongyao. All rights reserved.
//

#import <MediaPlayer/MediaPlayer.h>

#define PLAYER_CONTROLLER_WIDTH             HSY_CUSTOM_VIDEO_PLAYER_WIDTH
#define PLAYER_CONTROLLER_HEIGHT            HSY_CUSTOM_VIDEO_PLAYER_HEIGHT
#define PLAYER_CONTROLLER_CHANGE_FRAME      CGRectMake(((IPHONE_WIDTH - IPHONE_HEIGHT) / 2), ((IPHONE_HEIGHT - IPHONE_WIDTH) / 2), IPHONE_HEIGHT, IPHONE_WIDTH)

@interface HSYBaseVideoPlayerController : MPMoviePlayerController

@property (nonatomic, setter=hiddenVideoView:) BOOL isHidden;
@property (nonatomic, strong, setter=contentUrlString:) NSString *urlString;

- (void)rac_stopAllTimer;

@end

@interface HSYBaseVideoPlayerController (Show)

+ (HSYBaseVideoPlayerController *)showStremingPlayerControllerByVideoUrlString:(NSString *)urlString willTransformedSmallScreenBlock:(void(^)(NSNumber *value))willTransformBlock willChangeToFullscreenModeBlock:(void(^)(NSNumber *value))willChangeBlock dimissCompleteBlock:(void(^)())completedBlock currentPlayTimeBlock:(void(^)(NSNumber *value))currentTimeBlock;

@end

